#!/bin/bash

i="1000"
b="30000"
while [ "$i" -le "$b" ]
  do
     #echo "Welcome $i times"
	 ./test_chol_gpu_factor $i 64 >> ./out/test.res.64
	 echo order $i >> ./out/test.res.64
	 echo '' >> ./out/test.res.64
	 echo '' >> ./out/test.res.64
	 i=$[$i+1000]
 done
 
i="1000"
while [ "$i" -le "$b" ]
  do
     #echo "Welcome $i times"
	 ./test_chol_gpu_factor $i 32 >> ./out/test.res.32
	 echo order $i >> ./out/test.res.32
	 echo '' >> ./out/test.res.32
	 echo '' >> ./out/test.res.32
	 i=$[$i+1000]
 done 
 
i="1000"
while [ "$i" -le "$b" ]
  do
     #echo "Welcome $i times"
	 ./test_chol_gpu_factor $i 128 >> ./out/test.res.128
	 echo order $i >> ./out/test.res.128
	 echo '' >> ./out/test.res.128
	 echo '' >> ./out/test.res.128
	 i=$[$i+1000]
 done  

i="1000"
while [ "$i" -le "$b" ]
  do
     #echo "Welcome $i times"
	 ./test_chol_gpu_factor $i 256 >> ./out/test.res.256
	 echo order $i >> ./out/test.res.256
	 echo '' >> ./out/test.res.256
	 echo '' >> ./out/test.res.256
	 i=$[$i+1000]
 done 

i="1000"
while [ "$i" -le "$b" ]
  do
     #echo "Welcome $i times"
	 ./test_chol_gpu_factor $i 512 >> ./out/test.res.512
	 echo order $i >> ./out/test.res.512
	 echo '' >> ./out/test.res.512
	 echo '' >> ./out/test.res.512
	 i=$[$i+1000]
 done 